package com.example.linertext;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.CheckBox;

public class MainActivity extends Activity {

	private CheckBox eat;
	private CheckBox masturbate;
	private CheckBox makelove;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.radio);
		
		eat=(CheckBox)findViewById(R.id.eat);
		masturbate=(CheckBox)findViewById(R.id.masturbate);
		makelove=(CheckBox)findViewById(R.id.makelove);
		
		eat.setOnClickListener(new OnBoxListener());
		masturbate.setOnClickListener(new OnBoxListener());
		makelove.setOnClickListener(new OnBoxListener());
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	
	class OnBoxListener implements OnClickListener
	{

	
		public void onClick(View v) {
			System.out.println(v.getId()+"CheckClicked");
		}
		
	}
	
	

}
